package com.xucheng.test.freemarker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.http.client.OkHttp3ClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

/**
 * @Author Andrew Yang
 * @ClassName FreeApplication
 * @Description
 * @Package PACKAGE_NAME
 * @create 2020-02-02 14:03
 */
@SpringBootApplication
public class FreeTestApplication {
    public static void main(String[] args) {
        SpringApplication.run(FreeTestApplication.class);
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate(new OkHttp3ClientHttpRequestFactory());
    }
}
